import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";

// 项目模板列表
export function templateList(params: any) {
  return http.request("get", baseUrlApi("business/project_template/list"), { params });
}
// 修改项目模板状态
export function editStatus(params: any) {
  return http.request("post", baseUrlApi("business/project_template/editStatus"), { data:params });
}
// 商户列表 
export function listMerchantName() {
  return http.request("get", baseUrlApi("business/user_data_permissions/listMerchantName"));
}
// 税源地列表
export function taxSourcesList(params: any) {
  return http.request("get", baseUrlApi("business/user_data_permissions/listTaxSourcesRole"), { params });
}
// 开票类目 ?state=1&taxSourcesId=24
export function invoiceList(params: any) {
  return http.request("get", baseUrlApi("business/invoice_order_type/list"), { params });
}
// 添加项目模板 
export function templateAdd(params: any) {
  return http.request("post", baseUrlApi("business/project_template/add"), { data:params });
}
// 项目模板详情 378
export function templateDetail(id: number) {
  return http.request("get", baseUrlApi(`business/project_template/getInfo/${id}`));
}
// 项目模板编辑 
export function templateEdit(params: any) {
  return http.request("put", baseUrlApi("business/project_template/edit"), { data:params });
}
// 删除项目模板  
export function templateRemove(id: any) {
  return http.request("delete", baseUrlApi(`business/project_template/remove/${id}`));
}
// 项目列表 
export function projectList(params: any) {
  return http.request("get", baseUrlApi("business/project_task/list"), { params });
}
// 项目详情
export function projectDetail(id: number) {
  return http.request("get", baseUrlApi(`business/project_task/getInfo/${id}`));
}
// 规范确认列表 
export function merchantsdealList(params: any) {
  return http.request("get", baseUrlApi("business/merchants_deal_norm_confirm/list"), { params });
}
// 合同管理列表 
export function contractList(params: any) {
  return http.request("get", baseUrlApi("business/contract_template/list"), { params });
}
// 合同管理 状态修改
export function contractauditState(params: any) {
  return http.request("put", baseUrlApi("business/contract_template/auditState"), { data:params });
}
// 税源地列表 2 
export function taxList(params: any) {
  return http.request("get", baseUrlApi("business/tax_sources/list"), { params });
}
// 添加合同管理 
export function contractAdd(params: any) {
  return http.request("post", baseUrlApi("business/contract_template/add"), { data:params });
}
// 合同管理详情 32
export function contractDetail(id: number) {
  return http.request("get", baseUrlApi(`business/contract_template/getInfo/${id}`));
}
// 编辑合同管理 
export function contractEdit(params: any) {
  return http.request("put", baseUrlApi("business/contract_template/edit"), { data:params });
}
// 商户合同列表 
export function merchantsList(params: any) {
  return http.request("get", baseUrlApi("business/merchants_info_contract/list"), { params });
}
// 商户合同分类 
export function contractTypeList() {
  return http.request("get", baseUrlApi("constantList/contractTypeList"));
}
// 删除商户合同  317
export function merchantsRemove(id: any) {
  return http.request("delete", baseUrlApi(`business/merchants_info_contract/remove/${id}`));
}
// 商户合同状态修改 
export function merchantsState(params: any) {
  return http.request("put", baseUrlApi("business/merchants_info_contract/state"), { data:params });
}
// 商户合同备注 
export function remarkList(params: any) {
  return http.request("get", baseUrlApi("business/remark/list"), { params });
}
// 删除备注25
export function remarkRemove(id: any) {
  return http.request("delete", baseUrlApi(`business/remark/remove/${id}`));
}
// 添加备注 
export function addRemarkInfo(params: any) {
  return http.request("post", baseUrlApi("business/remark/addRemarkInfo"), { data:params });
}
// 签约方列表 
export function listAgentTax(params: any) {
  return http.request("get", baseUrlApi("business/tax_sources/listAgentTax"), { params });
}
// 商户合同详情 300
export function merchantsgetInfo(id: any) {
  return http.request("get", baseUrlApi(`business/merchants_info_contract/getInfo/${id}`));
}
// 编辑商户合同 
export function merchantsEdit(params: any) {
  return http.request("post", baseUrlApi("business/merchants_info_contract/edit"), { data:params });
}
// 创建人列表 ?entrySide=3
export function listBackstageUser(params: any) {
  return http.request("get", baseUrlApi("business/merchant_manager_user/listBackstageUser"), { params });
}
// 代理合同列表 
export function agentcontractList(params: any) {
  return http.request("get", baseUrlApi("business/agent_info_contract/list"), { params });
}
/* use*/
// 税务端 项目管理 -项目记录列表
export function projecttaskList(params: any) {
  return http.request("get", baseUrlApi("business/project_task/listTax"), { params });
}
// 税务端 项目管理 -项目记录 
export function projecttaskdtlList(params: any) {
  return http.request("get", baseUrlApi("business/project_task_dtl/listTax"), { params });
}

